#include <stdio.h>
#include <stdlib.h>

int main()
{
	printf("%s\n", getenv("PATH"));
	return 0;
}


/*int main()
{
	extern char** environ;
	int i = 0;
	while(environ[i])
	{
		printf("environ[%d], %s\n", i, environ[i]);
		++i;
	}

	return 0;
}*/


/*int main(int argc, char* argv[], char* envp[])
{
	int i = 0;
	while(envp[i])
	{
		printf("envp[%d]: %s\n", i, envp[i]);
		i++;
	}

	return 0;
}*/

/*int main(int argc, char* argv[], char* envp[])
{
	if(argc != 2)
	{
		printf("you did not use any option...\n");
		return 0;
	}

	if(strcmp(argv[1], "-a") == 0)
	{
		printf("功能1\n");
	}
	else if(strcmp(argv[1], "-b") == 0)
	{
		printf("功能2\n");
	}
	else
	{
		printf("default功能\n");
	}
	
	return 0;
}*/

/*int main (int argc, char* argv[])
{
	for(int i = 0; i < argc; ++i)
	{
		printf("argv[%d] : %s\n", i, argv[i] );
	}
	
	return 0;
}*/

